<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnBookTypeIdInPostTable extends AbstractMigration
{
    public function up()
    {
        $this->table("post")->addColumn('book_type_id', 'integer', ['limit' => 11, 'default' => 0, 'comment' => '知识库关联id类型ID']
        )->save();
    }

    public function down()
    {
        $this->table("post")->removeColumn("book_type_id")->save();
    }
}
